package ModelLayer;

import java.util.*;

public class Copy
{
    private long serialNr;
    private String purchaseDate;
    private int purchasePrice;
    static long runningSerialNr = 1;
    private boolean home;
    /**
    * Constructor for objects of class Copy
    */
    public Copy(String newPurchaseDate, int newPurchasePrice)
    {
        home = true;
        serialNr = runningSerialNr++;
        purchaseDate = newPurchaseDate;
        purchasePrice = newPurchasePrice;
    }
    
    public long getSerialNr()
    {
        return serialNr;
    }
    
    public void setHome()
    {
        home = true;
    }
    
    public void setOut()
    {
        home = false;
    }
}